package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName biz_assemble
 */
@TableName(value ="biz_assemble")
@Data
public class BizAssemble implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer assembleid;

    /**
     * 
     */
    private Integer partsid;

    /**
     * 
     */
    private Integer productid;

    /**
     * 
     */
    private Integer partscount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizAssemble other = (BizAssemble) that;
        return (this.getAssembleid() == null ? other.getAssembleid() == null : this.getAssembleid().equals(other.getAssembleid()))
            && (this.getPartsid() == null ? other.getPartsid() == null : this.getPartsid().equals(other.getPartsid()))
            && (this.getProductid() == null ? other.getProductid() == null : this.getProductid().equals(other.getProductid()))
            && (this.getPartscount() == null ? other.getPartscount() == null : this.getPartscount().equals(other.getPartscount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAssembleid() == null) ? 0 : getAssembleid().hashCode());
        result = prime * result + ((getPartsid() == null) ? 0 : getPartsid().hashCode());
        result = prime * result + ((getProductid() == null) ? 0 : getProductid().hashCode());
        result = prime * result + ((getPartscount() == null) ? 0 : getPartscount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", assembleid=").append(assembleid);
        sb.append(", partsid=").append(partsid);
        sb.append(", productid=").append(productid);
        sb.append(", partscount=").append(partscount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}